package apii.servlet.prof;

import java.nio.file.*;

public class ProfData {
	private int userId;
	private String name;
	private String surname;
	private String patronimic;

	public ProfData(int userId, String name, String surname, String patronimic) {
		if (userId <= 0 || name == null || surname == null
				|| patronimic == null)
			throw new IllegalArgumentException();
		this.userId = userId;
		this.name = name;
		this.surname = surname;
		this.patronimic = patronimic;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		if (name == null)
			throw new IllegalArgumentException();
		this.name = name;
	}

	public String getSurname() {
		return surname;
	}

	public void setSurname(String surname) {
		if (surname == null)
			throw new IllegalArgumentException();
		this.surname = surname;
	}

	public String getPatronimic() {
		return patronimic;
	}

	public void setPatronimic(String patronimic) {
		if (patronimic == null)
			throw new IllegalArgumentException();
		this.patronimic = patronimic;
	}

	public int getUserId() {
		return userId;
	}

	public void setUserId(int userId) {
		if (userId <= 0)
			throw new IllegalArgumentException();
		this.userId = userId;
	}
}
